domctl: pause vCPU for context reads
authorJan Beulich <jbeulich@suse.com>
Thu, 6 Feb 2014 11:20:48 +0000 (12:20 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 6 Feb 2014 11:20:48 +0000 (12:20 +0100)
commitfee61634e8f3fec7c137f0d16478c64c7f355587
treeee82e4d049f6314dcb464364a7235b73f3a3bd30
parent53f808a3880da13d0a0909f446698891a41f6869
domctl: pause vCPU for context reads

"Base" context reads already paused the subject vCPU when being the
current one, but that special case isn't being properly dealt with
anyway (at the very least when x86's fsgsbase feature is in use), so
just disallow it.

"Extended" context reads so far didn't do any pausing.

While we can't avoid the reported data being stale by the time it
arrives at the caller, this way we at least guarantee that it is
consistent.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-acked-by: George Dunlap <george.dunlap@eu.citrix.com>
xen/arch/x86/domctl.c
xen/common/domctl.c